"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
    const { router, controller } = app;
    router.get("/", controller.home.index);
    // 验证码生成接口
    router.post("/codes", controller.code.create);
    // 登录接口
    router.post("/login", controller.home.login);
    // 部门列表
    router.get("/depts", controller.dept.index);
};
